DEUBG = -D_DEBUG

APP = yuvwatermark

SRCS:= $(wildcard *.c)

INCS:= $(wildcard *.h)

OBJS:= $(SRCS:.c=.o)

CROSS_COMPILE =
CXX   = $(CROSS_COMPILE)g++
CC    = $(CROSS_COMPILE)gcc

CXX_FLAGS = -std=c++11

O_FLAG = -O2

all: $(APP)

.o: .c $(INCS) Makefile
	$(CC) -c $@ $(CFLAGS) $<

$(APP): $(OBJS) Makefile
	$(CC) -o $(APP) $(OBJS) $(LIBS) $(OPENCV_LIB)

clean:
	rm -rf $(OBJS) $(APP)

